package com.bl.weilan.service.biz.news;

import com.bl.weilan.dao.model.NewsEntity;
import com.bl.weilan.service.vo.news.NewsAddVo;
import com.bl.weilan.service.vo.news.NewsModVo;
import com.bl.weilan.service.vo.news.NewsListVo;
import org.springframework.data.domain.Pageable;
import com.bl.weilan.service.vo.DelBody;
import com.bl.weilan.service.vo.DelListBody;
/**
 * Created by liangweikang on 19/6/24.
 */
public interface NewsService {
    //通过id查询一条新闻
    NewsEntity getNewsById(String newsId);
    //通过类型查询新闻列表
    NewsListVo getNewsLists(String type, Pageable pageable );
    //添加一条新闻
    void addNews(NewsAddVo newsAddVo);
    // manager 删除单条新闻
    void del(DelBody id);
    //manager 批量删除新闻
    void delList(DelListBody idList);
    //修改新闻
    void modify(NewsModVo newsModVo);
}
